/**
 * @FileName GamePlayer.java
 * @Package com.designMode.dynamicProxy
 * -------------------------------------
 * @function Please write description of function
 * @Date 2015-12-29 下午5:21:13
 * -------------------------------------
 * Copyright (c) 2015,顾博君 All Rights Reserved.
 */
package com.designMode.proxy.dynamicProxy;

/**
 * @author 顾博君
 * @ClassName GamePlayer
 * @Date 2015-12-29 下午5:21:13
 * @Function 实体玩家类
 */
public class GamePlayer implements IGamePlayer {
    private String name = "";

    /**
     * 玩家 实现类
     *
     * @param _name 玩家名
     */
    public GamePlayer(String _name) {
        name = _name;
    }

    @Override
    public void killBoss() {
        System.out.println(name + "在打怪");
    }

    @Override
    public void login(String user, String password) {
        System.out.println("登录名为" + user + "的用户  " + name + "登录成功");
    }

    @Override
    public void upgrade() {
        System.out.println(name + "又升了一级");
    }
}
